// 这个getters模块中放的属性,为了在组件中方便使用
// $store.state.user.userInfo.name
// $store.getters.name
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  myroutes: state => state.permissions.routes,
  roles: state => state.user.userInfo.roles,
  companyName: state => state.user.userInfo.companyName,
  departmentName: state => state.user.userInfo.departmentName,
  theme: state => state.settings.theme
}
export default getters
